package com.xiaolun;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author 硕鼠
 * @Date 2020/4/16 10:48
 * @Version 1.0
 * @Description Security测试
 */
@Controller
public class TestController {

    @RequestMapping(value = "/hello")
    @ResponseBody
    public String hello(){
        return "你好";
    }

    @RequestMapping(value = "/success")
    @ResponseBody
    public String success(){
        return "成功";
    }
}
